import service from '@/utils/request'

// @Tags CfgPackagingMaterial
// @Summary 创建cfgPackagingMaterial表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CfgPackagingMaterial true "创建cfgPackagingMaterial表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cfgPackagingMaterial/createCfgPackagingMaterial [post]
export const createCfgPackagingMaterial = (data) => {
  return service({
    url: '/cfgPackagingMaterial/createCfgPackagingMaterial',
    method: 'post',
    data
  })
}

// @Tags CfgPackagingMaterial
// @Summary 删除cfgPackagingMaterial表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CfgPackagingMaterial true "删除cfgPackagingMaterial表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cfgPackagingMaterial/deleteCfgPackagingMaterial [delete]
export const deleteCfgPackagingMaterial = (params) => {
  return service({
    url: '/cfgPackagingMaterial/deleteCfgPackagingMaterial',
    method: 'delete',
    params
  })
}

// @Tags CfgPackagingMaterial
// @Summary 批量删除cfgPackagingMaterial表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cfgPackagingMaterial表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cfgPackagingMaterial/deleteCfgPackagingMaterial [delete]
export const deleteCfgPackagingMaterialByIds = (params) => {
  return service({
    url: '/cfgPackagingMaterial/deleteCfgPackagingMaterialByIds',
    method: 'delete',
    params
  })
}

// @Tags CfgPackagingMaterial
// @Summary 更新cfgPackagingMaterial表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CfgPackagingMaterial true "更新cfgPackagingMaterial表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cfgPackagingMaterial/updateCfgPackagingMaterial [put]
export const updateCfgPackagingMaterial = (data) => {
  return service({
    url: '/cfgPackagingMaterial/updateCfgPackagingMaterial',
    method: 'put',
    data
  })
}

// @Tags CfgPackagingMaterial
// @Summary 用id查询cfgPackagingMaterial表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CfgPackagingMaterial true "用id查询cfgPackagingMaterial表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cfgPackagingMaterial/findCfgPackagingMaterial [get]
export const findCfgPackagingMaterial = (params) => {
  return service({
    url: '/cfgPackagingMaterial/findCfgPackagingMaterial',
    method: 'get',
    params
  })
}

// @Tags CfgPackagingMaterial
// @Summary 分页获取cfgPackagingMaterial表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cfgPackagingMaterial表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cfgPackagingMaterial/getCfgPackagingMaterialList [get]
export const getCfgPackagingMaterialList = (params) => {
  return service({
    url: '/cfgPackagingMaterial/getCfgPackagingMaterialList',
    method: 'get',
    params
  })
}
